package com.jzlin.funhub.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jzlin.funhub.admin.model.dto.QuestionAnswerPageDTO;
import com.jzlin.funhub.admin.model.dto.QuestionPageDTO;
import com.jzlin.funhub.admin.model.entity.Question;
import com.jzlin.funhub.admin.model.entity.QuestionAnswer;
import com.jzlin.funhub.admin.model.req.QuestionAnswerPageReq;
import com.jzlin.funhub.admin.model.req.QuestionPageReq;

/**
 * <p>
 * 问题回答表 Mapper 接口
 * </p>
 *
 * @author jzlin
 * @since 2025-07-07
 */
public interface QuestionAnswerMapper extends BaseMapper<QuestionAnswer> {
    /**
     * 分页查询
     *
     * @param page   分页参数
     * @param params 查询参数
     * @return
     */
    IPage<QuestionAnswerPageDTO> queryPage(IPage<?> page, QuestionAnswerPageReq params);
}
